import request from '@/utils/request_zc'

export function getIncomingInspectionList ({
  serialNo,
  issueNo,
  material,
  inspector,
  page, limit }) {
  return request({
    url: '/material/inspection/list',
    method: 'get',
    params: {
      page,
      limit,
      serialNo,
      issueNo,
      material,
      inspector,
    }
  })
}

export function getissueList () {
  return request({
    url: '/material/issue/list',
    method: 'get'
  })
}

export function editIncomingInspection (data) {
  return request({
    url: '/material/inspection/edit',
    method: 'post',
    data
  })
}

export function addIncomingInspection (data) {
  return request({
    url: '/material/inspection/add',
    method: 'post',
    data
  })
}

export function delIncomingInspection (data) {
  return request({
    url: '/material/inspection/del',
    method: 'post',
    data
  })
}
